﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;

namespace WordpressRestApi
{
    /// <summary>Tag.</summary>
    /// <remarks>Defined in https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/tags/slug:%24tag/ </remarks>
    public class TagInfo
    {
        /// <summary>Post ID.</summary>
        public int ID { get; set; }

        /// <summary>Tag's name.</summary>
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>The name (slug) for the tag, used in URLs.</summary>
        [JsonProperty("slug")]
        public string Slug { get; set; }

        /// <summary>Tag's description.</summary>
        [JsonProperty("description")]
        public string Description { get; set; }

        /// <summary>Number of posts associated to that tag.</summary>
        [JsonProperty("post_count")]
        public int PostCount { get; set; }
    }
}